package data

import (
	"context"

	"Cosmos.Communication/internal/biz"
)

type health struct {
}

func NewHealth() (h biz.Health, cf func(), err error) {
	health := &health{}
	cf = health.Close
	h = health
	return
}

func (h *health) Check(ctx context.Context, request *biz.HealthCheckRequest) (result *biz.Result[*biz.HealthCheckResponse], err error) {
	result = &biz.Result[*biz.HealthCheckResponse]{
		Code: 200,
	}
	return
}

func (h *health) Close() {

}
